#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define XH(i,a,b) for(int i = a; i < b; ++i)
#define XXH(i,b,a) for(int i = b; i >= a; --i)
#define Module 998244353
int tmpInt;ll tmpll;string tmpStr;char tmpChar;
vector<int>tmpIntVector;

int main(){
  int a[3];cin>>a[0]>>a[1]>>a[2];
  sort(a,a+3);
  if(a[2]==7&&a[1]==5&&a[0]==5)cout<<"YES"<<endl;
  else cout<<"NO";

  return 0;
}
